<?php
namespace app\model;

use think\Model;

class UpdateTime extends Model
{
	protected $table = 'cfg_update_time';

	public static function getList ( array $array, $type ) {
		$where = [];
		array_push($where, ['companyId', '=', $array['companyId']]);
		array_push($where, ['type', '=', $type]);
		$query = self::field('username, datetime')->where($where)->order('id', 'desc')->select()->toArray();
		return $query;
	}
}
